package com.library.xtype;

import java.util.Collection;

import android.support.annotation.NonNull;

/**
 * 全局注册
 *
 * @author: zhiwei
 * @date: 2017-03-21 13:32
 * @version: 9.1.0
 */
final public class GlobalNuwaPool {
    private final static NuwaItemPool NUWA_ITEM_VIEW_MANAGER = new NuwaItemPool();

    public static <T extends INuwaItemBinder> void register(@NonNull Class<?> voClazz, @NonNull Class<T> binder) {
        NUWA_ITEM_VIEW_MANAGER.register(voClazz, binder);
    }

    static Collection<ItemProperty> getItemPropertys() {
        return NUWA_ITEM_VIEW_MANAGER.getItemPropertys();
    }
}
